/**
 * 解析当前菜单对应的路由
 * @param parentPath
 * @param childPath
 */
export const resolve = (parentPath = '', childPath = '') => {
  let separator = '/';
  if (parentPath.endsWith('/') || childPath.startsWith('/')) {
    separator = '';
  }
  return `${parentPath}${separator}${childPath}`;
};
